<?php

class VideoPlantSpeedUpAction extends SzAbstractAction
{
    Protected $paramTypes = array(
        SzAbstractAction::TYPE_INT,
        SzAbstractAction::TYPE_INT,
        SzAbstractAction::TYPE_ARRAY,
        SzAbstractAction::TYPE_INT
    );

    /**
     * 观看视频奖励(加速)
     * @param $userId
     * @param $videoId
     * @param $gridIds
     * @param $reqTime
     * @return SzResponse
     */
    public function execute($userId, $videoId, $gridIds,$reqTime)
    {
        GameService::get()->validateMultiRequestTimeDelta($userId, $reqTime);
        VideoService::get()->getVideoRewardsSpeedUp($userId, $videoId, $gridIds,$reqTime);
        return $this->buildResponse(true);
    }
}